import http from '@/utils/request'
import request from '@/utils/requestOther'


export default{
    /**
      * 条件分页查询
      * @returns
      */
    async getTagListApi(params){
      return await http.get("/api/picture/tag/findTagByPage",params);
    },
    /**
      * 条件creatorId查询
      * @returns
      */
    async list(params){
        return await http.getRestApi("/api/picture/tag/list",params);
      },
    async getAllTagApi(){
      return await http.get("/api/picture/tag/findAllTag");
    },  

  /**
      * 添加标签
      * @returns
      */
  async addTagApi(params) {
    return await http.post("/api/picture/tag/add", params);
},

/**
  * 编辑标签
  * @returns
  */
  async updateTagApi(params) {
    return await http.put("/api/picture/tag/edit", params);
},
   /**
    * 删除标签
    * @returns
    */
   async deleteTagApi(params) {
     return await http.delete("/api/picture/tag/delete", params);
},


}